<script lang="js" setup>
import { useUserStore } from "@/pinia/stores/user"
import Admin from "./components/Admin.vue"
import Editor from "./components/Editor.vue"
import {func1} from '@/common/utils/test.js'

const userStore = useUserStore()
const isAdmin = userStore.roles.includes("admin")
func1();

</script>

<template>
  <component :is="isAdmin ? Admin : Editor" />
</template>
